//
//  LXAboutUsViewController.m
//  cat
//
//  Created by imera on 16/4/2.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "LXAboutUsViewController.h"
#import "LXNavBarView.h"

@interface LXAboutUsViewController () <LXNavBarViewDelegate>

@end

@implementation LXAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    [self initSubViews];
}

- (void)initSubViews
{
    /** 导航条 */
    LXNavBarView *navBarView = [[LXNavBarView alloc]init];
    navBarView.leftTitle = @"返回";
    navBarView.myDelegate = self;
    navBarView.rightBtn.enabled = NO;
    navBarView.frame = CGRectMake(0, 20, self.view.frame.size.width, LXNavBarHeight);
    [self.view addSubview:navBarView];
    
    UIView *aboutUsView = [[[NSBundle mainBundle]loadNibNamed:@"AboutUs" owner:nil options:nil] lastObject];
    CGFloat aboutUsViewW = self.view.frame.size.width;
    CGFloat aboutUsViewX = 0;
    CGFloat aboutUsViewY = LXNavBarHeight + 20;
    CGFloat aboutUsViewH = self.view.frame.size.height - aboutUsViewY;
    aboutUsView.frame = CGRectMake(aboutUsViewX, aboutUsViewY, aboutUsViewW, aboutUsViewH);
    
    [self.view addSubview:aboutUsView];

}

#pragma mark - 自定义导航栏协议
- (void)popCurrentViewController:(LXNavBarView *)navBarView
{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
